<%@taglib uri="/WEB-INF/struts-html.tld"  prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html:form action="user.do?action=userUpdate">
    <table cellpadding="1" cellspacing="1" width="100%">
        <tr class="netral">
            <td colspan="2"><bean:message key="user.user"/> <bean:message key="label.edit"/></td>
        </tr>
        <tr class="form">
            <td><bean:message key="user.userName"/></td>
            <td>: <html:text property="userName" size="35"/></td>
        </tr>
        <tr class="form">
            <td><bean:message key="user.password"/></td>
            <td>: <html:password property="password" size="35"/></td>
        </tr>
        <tr class="form">
            <td><bean:message key="user.nama"/></td>
            <td>: <html:text property="nama" size="70"/></td>
        </tr>
        <tr class="form">
            <td><bean:message key="user.departement"/></td>
            <td>:
                <html:select property="departement">
                    <logic:iterate id="listDepartement" name="listDepartement">
                        <option value="<bean:write name="listDepartement" property="id"/>"><bean:write name="listDepartement" property="namaBagian"/></option>
                    </logic:iterate>
                </html:select>
            </td>
        </tr>
        <tr class="form">
            <td colspan="2" align="right"><input type="button" onclick="validate_form()" value="${buttonUpdate}"/><html:hidden property="id"/></td>
        </tr>
    </table>
</html:form>